package com.quanyan.stadium.api.req;

import com.quanyan.stadium.entity.vo.ChallengeList;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

/**
 * Created by xiao.lai on 16/5/26.
 *
 * 录入积分对象
 */
public class ReqRecordGameScheduleResult extends ChallengeList {

    private static final long serialVersionUID = -5640044491419723502L;
    private Integer gameScheduleId;

    @NotNull(message="录入积分不能为空")
    @Max(value = 1, message = "最大值必须是1")
    @Min(value= 0 ,message = "最小值必须是0" )
    private Byte type;  //0 普通录入  1  管理员录入

    private Integer gameEventId;

    private String scores;  //积分比对

    @NotNull(message="录入积分不能为空")
    private Byte isWin;   //0客场升;1主场胜利

    private Boolean isSure; //是否同意比分

    public Byte getIsWin() {
        return isWin;
    }

    public void setIsWin(Byte isWin) {
        this.isWin = isWin;
    }

    public Byte getType() {
        return type;
    }

    public void setType(Byte type) {
        this.type = type;
    }

    public Integer getGameScheduleId() {
        return gameScheduleId;
    }

    public void setGameScheduleId(Integer gameScheduleId) {
        this.gameScheduleId = gameScheduleId;
    }

    @Override
    public Integer getGameEventId() {
        return gameEventId;
    }

    @Override
    public void setGameEventId(Integer gameEventId) {
        this.gameEventId = gameEventId;
    }

    public String getScores() {
        return scores;
    }

    public void setScores(String scores) {
        this.scores = scores;
    }

    public Boolean getIsSure() {
        return isSure;
    }

    public void setIsSure(Boolean isSure) {
        this.isSure = isSure;
    }

}
